import { UserInfo } from './User'
import { TbMessageReply } from './TbMessageReply'

type TbMessage = {
  mid: number
  uid: number
  title: string
  info: string
  hits: number
  praise: number
  reply: number
  reason: string
  deleted: string
  lastupdate: number
  user: UserInfo
  replies: Array<TbMessageReply>
  exInfo: TbMessageExInfo
}

type TbMessageExInfo = {
  praised: boolean
  mine: boolean
}

export type { TbMessage }
